<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改留言板')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-dispose-level">
            <input name="mbIds"  type="text" th:value="${mbIds}" hidden="hidden">
            <div class="form-group">
                <div class="col-sm-8">
                    <select name="verifierId" class="form-control m-b" required>
                        <option th:each="user : ${disposer}" th:text="${user.userName}" th:value="${user.userId}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mbs/dispose";
        $("#form-mbinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                var data = $('form-dispose-level').serializeArray();
                data.push({"name": "mbIds", "value": $('input[name = "mbIds"]').val()});
                data.push({"name": "verifierId", "value": $('select[name = "verifierId"]').val()});
                $.operate.save(prefix + "/distribute/verifier", data);
            }
        }
    </script>
</body>
</html>